Skip to content
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.

Commit

Permalink
Merge tag 'v0.9.2-src'
Browse files Browse the repository at this point in the history
0.9.2

* tag 'v0.9.2-src':
  0.9.2
  '@typescript-eslint/prefer-interface': 'off'
  allow import/resolver to like .ts extensions even from .js modules
  • Loading branch information
andreineculau committed Nov 1, 2019
2 parents 9d02606 + 710427f commit a5981d5
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 20 deletions.
17 changes: 16 additions & 1 deletion configs/import.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,22 @@ module.exports = {
'import/ignore': [
'\\.json$',
'node_modules'
]
],

'import/resolver': {
node: {
extensions: [
// default + react
'.js',
'.json',
'.jsx',
'.mjs',
// typescript + react
'.ts',
'.tsx'
]
}
}
},

rules: {
Expand Down
19 changes: 1 addition & 18 deletions configs/typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,6 @@ module.exports = {
project: './tsconfig.json'
},

settings: {
'import/resolver': {
node: {
extensions: [
// default + react
'.js',
'.json',
'.jsx',
'.mjs',
// typescript + react
'.ts',
'.tsx'
]
}
}
},

rules: {
// 'no-var' is broken atm for typescript, but it will be fixed in a the next version
// see https://github.com/eslint/eslint/pull/11443
Expand All @@ -51,7 +34,7 @@ module.exports = {
'@typescript-eslint/ban-types': 'off',

'@typescript-eslint/no-type-alias': 'off', // tslint:interface-over-type-literal
'@typescript-eslint/prefer-interface': 'error', // tslint:interface-over-type-literal
'@typescript-eslint/prefer-interface': 'off', // tslint:interface-over-type-literal

'@typescript-eslint/explicit-member-accessibility': 'off', // tslint:member-access
'@typescript-eslint/generic-type-naming': 'error',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"private": true,
"name": "eslint-config-firecloud",
"description": "The ESLint config used within Tobii Cloud Services.",
"version": "0.9.1",
"version": "0.9.2",
"license": "Unlicense",
"files": [
"/*.js",
Expand Down

0 comments on commit a5981d5

Please sign in to comment.