apple2js/.eslintrc.json

110 lines
2.3 KiB
JSON
Raw Normal View History

2016-11-22 05:17:34 +00:00
{
2020-11-07 23:49:05 +00:00
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint/eslint-plugin"],
2016-11-22 05:17:34 +00:00
"rules": {
"indent": [
2020-11-07 23:49:05 +00:00
"error",
2016-11-22 05:17:34 +00:00
4
],
"quotes": [
2020-11-07 23:49:05 +00:00
"error",
"single"
],
"linebreak-style": [
2020-11-07 23:49:05 +00:00
"error",
"unix"
],
2020-11-07 23:49:05 +00:00
"prefer-const": [
"error"
],
"semi": [
2020-11-07 23:49:05 +00:00
"error",
"always"
],
2020-11-07 23:49:05 +00:00
"no-use-before-define": "off",
"@typescript-eslint/no-use-before-define": [
"error",
{
"functions": false,
"classes": false
}
],
2020-11-07 23:49:05 +00:00
"no-unused-vars": "off",
2020-11-16 02:51:05 +00:00
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_"
}
],
2020-11-07 23:49:05 +00:00
"no-redeclare": "off",
"@typescript-eslint/no-redeclare": ["error"],
"no-console": [
2020-11-07 23:49:05 +00:00
"error",
{
"allow": [
"info",
"warn",
"error"
]
}
2016-11-22 05:17:34 +00:00
]
},
"env": {
"builtin": true,
2016-11-22 05:17:34 +00:00
"browser": true,
2019-03-01 05:21:18 +00:00
"es6": true
},
"parserOptions": {
"sourceType": "module"
2016-11-22 05:17:34 +00:00
},
2019-03-03 06:46:37 +00:00
"extends": "eslint:recommended",
"overrides": [
{
2020-11-07 23:49:05 +00:00
"files": [
"**/*.ts"
],
"rules": {
"no-var": "error"
}
},
{
"files": [
"bin/*",
"babel.config.js",
"webpack.config.js"
],
2019-03-03 06:46:37 +00:00
"rules": {
"no-console": 0
},
"env": {
"node": true,
"jquery": false,
"browser": false
}
2020-11-07 23:49:05 +00:00
},
{
"files": [
"test/**/*"
],
2019-03-27 04:02:27 +00:00
"env": {
"jest": true,
2020-11-07 23:49:05 +00:00
"jasmine": true,
"node": true
},
"rules": {
"no-console": 0
2019-03-27 04:02:27 +00:00
}
2020-11-07 23:49:05 +00:00
},
{
"files": [
"js/entry2.js",
"js/entry2e.js",
"jest.config.js"
],
"env": {
"commonjs": true
}
2019-03-03 06:46:37 +00:00
}
]
2016-11-22 05:17:34 +00:00
}