-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
45 lines (44 loc) · 968 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
40
41
42
43
44
45
const path = require('path');
module.exports = {
extends: [
'airbnb',
'plugin:jsx-a11y/strict',
],
env: {
browser: true,
},
ignorePatterns: [
'public/*',
'src/Arduino/arduino-base',
'src/html.js',
],
parserOptions: {
ecmaVersion: 2020,
},
rules: {
'linebreak-style': 'off',
'import/no-extraneous-dependencies': 'off',
// The SMM team doesn't write React code in .jsx files exclusively, as is suggested in the
// Airbnb guide, so override this rule to allow .js files.
'react/jsx-filename-extension': [
1,
{
extensions: [
'.js',
'.jsx',
],
},
],
},
settings: {
'import/resolver': {
alias: {
map: [
['@components', path.resolve(__dirname, './src/components')],
['@styles', path.resolve(__dirname, './src/styles')],
],
extensions: ['.ts', '.js', '.jsx', '.json'],
},
},
},
};