Skip to content

Commit

Permalink
Override rules for TS files only and enable strict ts
Browse files Browse the repository at this point in the history
  • Loading branch information
YouKnowBlom committed Oct 31, 2020
1 parent ac2b361 commit e6b2ba2
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 16 deletions.
37 changes: 22 additions & 15 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,22 +31,29 @@ module.exports = {
'no-trailing-spaces': ["error"],
'one-var': ["error", "never"],
'semi': ["error"],
'space-before-blocks': ["error"],
// Disable these until we have converted the project to TS
'@typescript-eslint/explicit-module-boundary-types': "off",
'@typescript-eslint/no-explicit-any': "off"
'space-before-blocks': ["error"]
},
overrides: [{
files: ['./src/**/*.js', './src/**/*.ts'],
env: {
node: false,
browser: true,
es6: true
overrides: [
{
files: ['./src/**/*.js', './src/**/*.ts'],
env: {
node: false,
browser: true,
es6: true
},
globals: {
cast: 'readonly',
PRODUCTION: 'readonly',
$scope: 'writable'
}
},
globals: {
cast: 'readonly',
PRODUCTION: 'readonly',
$scope: 'writable'
{
files: ['./src/**/*.ts'],
rules: {
// Disable these until we have converted the project to TS
'@typescript-eslint/explicit-module-boundary-types': "off",
'@typescript-eslint/no-explicit-any': "off"
}
}
}]
]
}
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"moduleResolution": "Node",
"allowJs": true,
"sourceMap": true,
"outDir": "./dist/"
"outDir": "./dist/",
"strict": true
}
}

0 comments on commit e6b2ba2

Please sign in to comment.