-
Notifications
You must be signed in to change notification settings - Fork 61
/
.eslintrc.js
26 lines (26 loc) · 1016 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
module.exports = {
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
extends: [// https://www.npmjs.com/package/eslint-config-airbnb-base
'airbnb-base/legacy'],
ignorePatterns: ['node_modules/', 'dist/', 'public/', 'webpack/', 'res/', 'scripts/', '.eslintrc.js', 'options-help.ts'],
'globals': {
'chrome': 'readonly',
'JQuery': 'readonly'
},
rules: {
'no-case-declarations': 'off', // case 语句中声明
'indent': ['error', 4], // 缩进
'no-mixed-spaces-and-tabs': 'error', // tab 空格混用
'strict': ['error', 'never'], // 严格模式
'no-param-reassign': 'off', // 给参数赋值
'no-underscore-dangle': 'off', // 下划线变量
'no-plusplus': 'off', // i++
'radix': 'off', // parseInt 进制
'no-alert': 'off', // alert
'semi': ['error', 'never'], // 分号
"no-shadow": "off",
"linebreak-style": 0,
"no-console": "off"
}
}