diff options
-rw-r--r-- | .eslintrc.js | 7 | ||||
-rw-r--r-- | .gitignore | 3 | ||||
-rw-r--r-- | package.json | 16 | ||||
-rw-r--r-- | tsconfig.json | 2 |
4 files changed, 23 insertions, 5 deletions
diff --git a/.eslintrc.js b/.eslintrc.js index b591bdc..fc71e34 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,17 +1,16 @@ module.exports = { + parser: "@typescript-eslint/parser", + extends: "eslint:recommended", env: { browser: true, commonjs: true, es2021: true, }, - extends: "eslint:recommended", - parserOptions: { - ecmaVersion: "latest", - }, rules: { "no-constant-binary-expression": "error", indent: [ "warn", "tab", { SwitchCase: 1 } ], semi: [ "error", "never" ], "no-unused-vars": [ "error", { "vars": "all", "args": "all", "argsIgnorePattern": "^_" } ], + "prefer-const": 0, }, } @@ -1 +1,4 @@ HIRES +node_modules +rules.d.ts +package-lock.json diff --git a/package.json b/package.json new file mode 100644 index 0000000..8664fee --- /dev/null +++ b/package.json @@ -0,0 +1,16 @@ +{ + "name": "plantagenet", + "version": "1.0.0", + "main": "rules.js", + "scripts": { + "prepare": "tsc", + "lint": "eslint rules.ts", + "dev": "tsc --watch" + }, + "devDependencies": { + "@typescript-eslint/eslint-plugin": "latest", + "@typescript-eslint/parser": "latest", + "eslint": "latest", + "typescript": "latest" + } +} diff --git a/tsconfig.json b/tsconfig.json index 89a2587..04ec81b 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "esnext", + "target": "es2016", "declaration": true, "strict": false, |