generated from timlrx/tailwind-nextjs-starter-blog
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy patheslint.config.mjs
43 lines (42 loc) · 917 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
43
import js from '@eslint/js'
import globals from 'globals'
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended'
export default [
{
languageOptions: {
globals: {
...globals.browser,
...globals.node,
...globals.commonjs,
},
},
},
js.configs.recommended,
eslintPluginPrettierRecommended,
{
files: ['**/*.{js,jsx,ts,tsx}'],
languageOptions: {
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
ecmaFeatures: {
jsx: true,
},
},
globals: {
document: 'readonly',
window: 'readonly',
process: 'readonly',
},
},
rules: {
'react/react-in-jsx-scope': 'off',
'react/prop-types': 'off',
'no-unused-vars': 'off',
'react/no-unescaped-entities': 'off',
},
},
{
ignores: ['node_modules/**'],
},
]