diff --git a/.eslintrc.js b/.eslintrc.js index 0484ce98..3d3a626c 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -13,7 +13,7 @@ module.exports = { overrides: [ { /** Overrides for JSON */ - files: ['**/*.json'], + files: ['*.json'], extends: [], rules: {}, parser: '@typescript-eslint/parser', @@ -21,7 +21,7 @@ module.exports = { { /** Overrides for typescript */ - files: ['**/*.ts', '**/*.tsx'], + files: ['*.ts', '*.tsx'], extends: ['plugin:@typescript-eslint/recommended', 'plugin:prettier/recommended'], rules: { '@typescript-eslint/no-unused-vars': 'error', @@ -36,7 +36,7 @@ module.exports = { * All rules in the Typescript overrides are also applied * They can be overwriten here */ - files: ['**/*.test.ts', '**/*.test.tsx'], + files: ['*.test.ts', '*.test.tsx'], rules: { '@typescript-eslint/no-non-null-assertion': 'off', }, diff --git a/config/tsconfig.json b/config/tsconfig.json index c649f2d7..eb3af0fe 100644 --- a/config/tsconfig.json +++ b/config/tsconfig.json @@ -1,7 +1,7 @@ { - "extends": "@linzjs/style/tsconfig.base.json", - "compilerOptions": { - "lib": ["ES2020"], - "outDir": "build" - } -} \ No newline at end of file + "extends": "@linzjs/style/tsconfig.base.json", + "compilerOptions": { + "lib": ["ES2020"], + "outDir": "build" + } +} diff --git a/package.json b/package.json index 2666f02c..c2b3f056 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ "scripts": { "build": "tsc", "version": "conventional-changelog -p angular -i CHANGELOG.md -s && git add CHANGELOG.md", - "lint": "npx eslint {src/**,*.js}" + "lint": "npx eslint . --ignore-path .gitignore" }, "devDependencies": { "@types/node": "^16.7.10", diff --git a/tsconfig.base.json b/tsconfig.base.json index a0352479..4a437ee1 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1,28 +1,28 @@ { - "compilerOptions": { - "composite": true, - "target": "ES2018", - "module": "commonjs", - "lib": [], - "declaration": true, - "declarationMap": true, - "strict": true, - "noImplicitAny": true, - "strictNullChecks": true, - "noImplicitThis": true, - "alwaysStrict": true, - "noUnusedLocals": false, - "noUnusedParameters": false, - "noImplicitReturns": true, - "noFallthroughCasesInSwitch": false, - "inlineSourceMap": true, - "inlineSources": true, - "noEmitOnError": false, - "experimentalDecorators": true, - "strictPropertyInitialization": false, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "resolveJsonModule": true, - "baseUrl": "./", - } + "compilerOptions": { + "composite": true, + "target": "ES2018", + "module": "commonjs", + "lib": [], + "declaration": true, + "declarationMap": true, + "strict": true, + "noImplicitAny": true, + "strictNullChecks": true, + "noImplicitThis": true, + "alwaysStrict": true, + "noUnusedLocals": false, + "noUnusedParameters": false, + "noImplicitReturns": true, + "noFallthroughCasesInSwitch": false, + "inlineSourceMap": true, + "inlineSources": true, + "noEmitOnError": false, + "experimentalDecorators": true, + "strictPropertyInitialization": false, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "resolveJsonModule": true, + "baseUrl": "./" + } } diff --git a/tsconfig.json b/tsconfig.json index 1fd825c5..841f72e0 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,9 +1,7 @@ { - "extends": "./tsconfig.base.json", - "compilerOptions": { - "outDir": "build", - "lib": [ - "ES2020" - ] - } -} \ No newline at end of file + "extends": "./tsconfig.base.json", + "compilerOptions": { + "outDir": "build", + "lib": ["ES2020"] + } +}