build: migrate to use typescript compatible linter setup
This commit is contained in:
parent
c86f1f5546
commit
618609dbfa
4 changed files with 566 additions and 1029 deletions
5
.eslintignore
Normal file
5
.eslintignore
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
**/node_modules/*
|
||||||
|
**/log/*
|
||||||
|
**/shared/*
|
||||||
|
|
||||||
|
supervise
|
11
.eslintrc.js
Normal file
11
.eslintrc.js
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
module.exports = {
|
||||||
|
root: true,
|
||||||
|
env: {
|
||||||
|
browser: true,
|
||||||
|
amd: true,
|
||||||
|
node: true
|
||||||
|
},
|
||||||
|
parser: '@typescript-eslint/parser',
|
||||||
|
plugins: ['@typescript-eslint'],
|
||||||
|
extends: ['eslint:recommended', "plugin:@typescript-eslint/recommended"]
|
||||||
|
};
|
16
package.json
16
package.json
|
@ -6,7 +6,7 @@
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "node app",
|
"start": "node app",
|
||||||
"lint": "eslint --ignore-pattern '**/node_modules/*' --ignore-pattern '**/log/*' --ignore-pattern 'supervise' --ignore-pattern '**/shared/*' ."
|
"lint": "eslint ."
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actual-app/api": "^4.0.1",
|
"@actual-app/api": "^4.0.1",
|
||||||
|
@ -22,17 +22,11 @@
|
||||||
"node-fetch": "^2.2.0",
|
"node-fetch": "^2.2.0",
|
||||||
"uuid": "^3.3.2"
|
"uuid": "^3.3.2"
|
||||||
},
|
},
|
||||||
"eslintConfig": {
|
|
||||||
"extends": "react-app"
|
|
||||||
},
|
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"babel-eslint": "^10.0.1",
|
"@typescript-eslint/eslint-plugin": "^5.23.0",
|
||||||
"eslint": "^5.12.1",
|
"@typescript-eslint/parser": "^5.23.0",
|
||||||
"eslint-config-react-app": "^3.0.6",
|
"eslint": "^8.15.0",
|
||||||
"eslint-plugin-flowtype": "^3.2.1",
|
"typescript": "^4.6.4"
|
||||||
"eslint-plugin-import": "^2.14.0",
|
|
||||||
"eslint-plugin-jsx-a11y": "^6.1.2",
|
|
||||||
"eslint-plugin-react": "^7.12.4"
|
|
||||||
},
|
},
|
||||||
"prettier": {
|
"prettier": {
|
||||||
"singleQuote": true,
|
"singleQuote": true,
|
||||||
|
|
Loading…
Reference in a new issue