Skip to content
This repository was archived by the owner on Sep 6, 2022. It is now read-only.

Commit c99fedd

Browse files
Enable eslint to run for all files with .
- Excluded gitignore internal & server paths from eslint
1 parent a8f3aab commit c99fedd

File tree

3 files changed

+15
-9
lines changed

3 files changed

+15
-9
lines changed

.eslintignore

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
internals/scripts
22
internals/generators
3+
internals/templates
34
server/
45
**/types.d.ts
5-
*.html
6+
*.html
7+
node_modules
8+
coverage
9+
build
10+
node_modules

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"clean": "shjs ./internals/scripts/clean.js",
3232
"clean:all": "npm run analyze:clean && npm run test:clean && npm run build:clean",
3333
"generate": "plop --plopfile internals/generators/index.js",
34-
"lint": "npm run lint:css && npm run lint:eslint:quiet app/**",
34+
"lint": "npm run lint:css && npm run lint:eslint:quiet .",
3535
"lint:css": "stylelint './app/**/*.{js,ts}'",
3636
"lint:eslint:quiet": "eslint --ext .ts,.tsx,.js,.jsx --no-error-on-unmatched-pattern --quiet",
3737
"lint:eslint": "eslint --ext .ts,.tsx,.js,.jsx --no-error-on-unmatched-pattern",

tsconfig.eslint.json

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
{
22
// extend your base config so you don't have to redefine your compilerOptions
33
"extends": "./tsconfig.json",
4-
"include": [
5-
"app/**/*.ts",
6-
"app/**/*.tsx",
7-
"app/**/*.js",
8-
"app/**/*.jsx",
9-
"internals/**/*.js",
10-
"internals/**/*.jsx"
4+
"include": ["**/*.ts", "**/*.tsx", "**/*.js", "**/*.jsx"],
5+
"exclude": [
6+
"internals/scripts/**",
7+
"internals/templates/**",
8+
"server/**",
9+
"node_modules/**",
10+
"build/**",
11+
"coverage/**"
1112
]
1213
}

0 commit comments

Comments
 (0)