forked from saurabhbakolia/SCROLLME--ECOMMERCE-WEBSITE
-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint.config.mjs
42 lines (41 loc) · 969 Bytes
/
eslint.config.mjs
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
39
40
41
42
import globals from 'globals'
import react from 'eslint-plugin-react'
import reactRecommended from 'eslint-plugin-react/configs/recommended.js'
import prittier from 'eslint-config-prettier';
export default [
{
ignores: ['eslint.config.mjs', '**/*.css']
},
{
files: ['**/*.{js,mjs,cjs,jsx}'],
...reactRecommended,
settings: {
react: {
version: 'detect'
}
},
languageOptions: {
...reactRecommended.languageOptions,
ecmaVersion: 'latest',
sourceType: 'module',
parserOptions: {
ecmaFeatures: {
jsx: true
}
},
globals: {
...globals.serviceworker,
...globals.browser
}
},
plugins: {
react
},
rules: {
'no-unused-vars': ['error', { vars: 'all', args: 'after-used', ignoreRestSiblings: false }],
semi: ['error', 'always'],
'react/jsx-uses-vars': 'error',
'semi': ['error', 'always'],
}
}
]