-
-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy path.eslintrc.js
More file actions
25 lines (25 loc) · 682 Bytes
/
Copy path.eslintrc.js
File metadata and controls
25 lines (25 loc) · 682 Bytes
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
module.exports = {
root: true,
env: {
browser: true,
amd: true,
node: true,
es6: true,
},
plugins: ['unused-imports'],
extends: ['eslint:recommended', 'plugin:prettier/recommended', 'next', 'next/core-web-vitals'],
rules: {
'prettier/prettier': 'error',
'react/react-in-jsx-scope': 'off',
'react/prop-types': 0,
'no-unused-vars': 0,
'react/no-unescaped-entities': 0,
'import/order': 'error',
'no-unused-vars': 'off',
'unused-imports/no-unused-imports': 'error',
'unused-imports/no-unused-vars': [
'warn',
{ vars: 'all', varsIgnorePattern: '^_', args: 'after-used', argsIgnorePattern: '^_' },
],
},
}