add another version of eslint rules.
This commit is contained in:
32
dot/.eslintrc.back.json
Normal file
32
dot/.eslintrc.back.json
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
{
|
||||||
|
"parserOptions": {
|
||||||
|
"ecmaVersion": 6,
|
||||||
|
"sourceType": "module",
|
||||||
|
"ecmaFeatures": {
|
||||||
|
"jsx": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"extends": "eslint:recommended",
|
||||||
|
"rules": {
|
||||||
|
"no-console": "off",
|
||||||
|
"no-unused-vars": "warn",
|
||||||
|
"semi": ["error", "always"]
|
||||||
|
},
|
||||||
|
"env": {
|
||||||
|
"browser": true,
|
||||||
|
"jquery": true,
|
||||||
|
"node": true,
|
||||||
|
"es6": true,
|
||||||
|
"mocha": true
|
||||||
|
},
|
||||||
|
"plugins": [
|
||||||
|
"react"
|
||||||
|
],
|
||||||
|
"globals": {
|
||||||
|
"cc": false,
|
||||||
|
"CC_EDITOR": false,
|
||||||
|
"CC_DEV": false,
|
||||||
|
"CC_JSB": false,
|
||||||
|
"_ccsg": false
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user