move to local eslint and linting for es2021

master
Kebler Network System Administrator 2021-05-13 15:39:46 -07:00
parent df01b54ba6
commit c9fe5e562a
3 changed files with 22 additions and 42 deletions

View File

@ -1,37 +0,0 @@
module.exports = {
"ecmaFeatures": {
"modules": true,
"spread" : true,
"restParams" : true
},
// "plugins": [
// "unicorn"
// ],
"env": {
"es6": true,
"node": true,
"mocha": true
},
"parserOptions": {
"ecmaVersion": 2017,
"sourceType": "module"
},
"extends": "eslint:recommended",
"rules": {
"indent": [
"error",
2
],
// "unicorn/no-array-instanceof": "error",
"no-console": 0,
"semi": ["error", "never"],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"single"
]
}
}

15
.eslintrc.yml Normal file
View File

@ -0,0 +1,15 @@
env:
node: true
es2021: true
mocha: true
extends:
- standard
parserOptions:
ecmaVersion: 12
sourceType: module
rules:
indent: ["error", 2]
no-console: 0
semi: ["error", "never"]
# linebreak-style: ["error", "unix"]
quotes: ["error", "single"]

View File

@ -6,7 +6,7 @@
"type": "module", "type": "module",
"scripts": { "scripts": {
"test": "./node_modules/.bin/mocha --timeout 30000", "test": "./node_modules/.bin/mocha --timeout 30000",
"testd": "UCI_ENV=dev ./node_modules/.bin/nodemon --exec './node_modules/.bin/mocha --timeout 30000' || exit 0" "test:dev": "UCI_ENV=dev ./node_modules/.bin/nodemon --exec './node_modules/.bin/mocha --timeout 30000' || exit 0"
}, },
"author": "David Kebler", "author": "David Kebler",
"license": "MIT", "license": "MIT",
@ -26,9 +26,11 @@
}, },
"homepage": "https://github.com/uCOMmandIt/uci-utils/class-merge#readme", "homepage": "https://github.com/uCOMmandIt/uci-utils/class-merge#readme",
"devDependencies": { "devDependencies": {
"chai": "^4.2.0", "chai": "^4.3.4",
"chai-eventemitter2": "^0.2.1", "chai-eventemitter2": "^0.2.1",
"mocha": "^7.0.1", "eslint": "^7.26.0",
"nodemon": "^2.0.2" "eslint-config-standard": "^16.0.2",
"mocha": "^8.4.0",
"nodemon": "^2.0.7"
} }
} }