forked from expo/expo
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.cjs
37 lines (37 loc) · 974 Bytes
/
.eslintrc.cjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
module.exports = {
root: true,
extends: [
'universe/node',
'universe/web',
'plugin:@next/next/recommended',
'plugin:testing-library/react',
'plugin:tailwindcss/recommended'
],
plugins: ['lodash', 'testing-library'],
rules: {
'lodash/import-scope': [2, 'method'],
'@next/next/no-img-element': 0,
'react/jsx-curly-brace-presence': [1, { propElementValues: 'ignore' }],
// https://github.com/emotion-js/emotion/issues/2878
'react/no-unknown-property': ['error', { 'ignore': ['css'] }],
'tailwindcss/classnames-order': 'off',
'tailwindcss/no-custom-classname': ['warn', {
'whitelist': [
'diff-.+',
'anchor-icon',
'react-player',
'dark-theme',
'dialog-.+'
]
}]
},
settings: {
tailwindcss: {
cssFiles: [
"node_modules/@expo/styleguide/dist/global.css"
],
callees: ["mergeClasses"],
config: "tailwind.config.cjs",
}
}
};