forked from flybywiresim/installer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
39 lines (38 loc) · 921 Bytes
/
.eslintrc.js
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
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'prettier', 'react', 'tailwindcss'],
extends: [
'eslint:recommended',
'plugin:prettier/recommended',
'plugin:@typescript-eslint/recommended',
'plugin:react-hooks/recommended',
'plugin:react/recommended',
],
env: {
browser: true,
es2021: true,
node: true,
},
parserOptions: {
sourceType: 'module',
},
settings: {
react: { version: 'detect' },
},
rules: {
'prettier/prettier': [
'error',
{},
{
usePrettierrc: true,
},
],
'no-console': 'off',
'tailwindcss/classnames-order': 'error',
'tailwindcss/enforces-negative-arbitrary-values': 'error',
'tailwindcss/enforces-shorthand': 'error',
'tailwindcss/migration-from-tailwind-2': 'error',
'tailwindcss/no-contradicting-classname': 'error',
},
};