forked from expo/expo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
36 lines (36 loc) · 1.09 KB
/
.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
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/enforces-negative-arbitrary-values': 'warn',
'tailwindcss/enforces-shorthand': 'warn',
'tailwindcss/no-arbitrary-value': 'off',
'tailwindcss/no-custom-classname': ['warn', {
callees: ['mergeClasses'],
whitelist: [
'diff-.+',
'react-player',
'dark-theme',
'dialog-.+',
'terminal-snippet'
],
cssFiles: [
"node_modules/@expo/styleguide/dist/global.css"
],
classRegex: '^(confirmation|container|icon)?(c|C)lass(Name)?$',
}],
}
};