-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
38 lines (38 loc) · 1.27 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
37
38
module.exports = {
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module',
ecmaFeatures: {
jsx: true,
},
},
env: {
browser: true,
node: true,
es6: true,
},
ignorePatterns: ['node_modules/*', '.next/*', '.out/*', '!.prettierrc.cjs'],
plugins: ['simple-import-sort'],
settings: {
react: {
version: 'detect',
},
},
extends: [
'eslint:recommended',
'plugin:jsx-a11y/recommended', // Accessibility rules
'plugin:react/recommended', // React specific linting rules for eslint
'plugin:prettier/recommended', // Runs Prettier as an ESLint rule and reports differences as individual ESLint issues.
'plugin:sonarjs/recommended', // SonarJS rules for ESLint to detect bugs and suspicious patterns in your code.
'plugin:react-hooks/recommended', // This ESLint plugin enforces the Rules of Hooks.
],
rules: {
'no-console': 'off',
'react/react-in-jsx-scope': 'off',
'react/prop-types': 'off',
'unicorn/filename-case': 'off',
'simple-import-sort/imports': 'warn',
'simple-import-sort/exports': 'warn',
'prettier/prettier': ['error', {endOfLine: 'auto'}],
},
}