You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
782 B
42 lines
782 B
module.exports = {
|
|
env: {
|
|
browser: true,
|
|
es2021: true,
|
|
node: true,
|
|
},
|
|
extends: [
|
|
'eslint:recommended',
|
|
'plugin:react/recommended',
|
|
'airbnb',
|
|
'airbnb/hooks',
|
|
],
|
|
parserOptions: {
|
|
ecmaFeatures: {
|
|
jsx: true,
|
|
},
|
|
ecmaVersion: 13,
|
|
sourceType: 'module',
|
|
},
|
|
plugins: [
|
|
'react',
|
|
],
|
|
settings: {
|
|
'import/resolver': 'webpack',
|
|
},
|
|
rules: {
|
|
'no-console': 'off',
|
|
'linebreak-style': [0, 'error', 'windows'],
|
|
'react/jsx-filename-extension': [1, {
|
|
extensions: ['.js', '.jsx'],
|
|
}],
|
|
'no-unused-expressions': [1, {
|
|
allowShortCircuit: true,
|
|
allowTernary: true,
|
|
}],
|
|
'max-len': [1, {
|
|
code: 300,
|
|
}],
|
|
'react/prop-types': 0,
|
|
'class-methods-use-this': 'off',
|
|
},
|
|
};
|
|
|