Skip to content

Commit

Permalink
Add no-require-imports rule
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Feb 10, 2019
1 parent 495cc3c commit c7fcf83
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ module.exports = {
],
settings: {
'import/resolver': {
'node': {
'extensions': [
node: {
extensions: [
'.js',
'.jsx',
'.ts',
Expand Down Expand Up @@ -65,17 +65,17 @@ module.exports = {
any: {
message: 'Use `unknown` instead.',
fixWith: 'unknown'
},
}
// TODO: Enforce `undefined` over `null` here too?
}
}
],
'camelcase': 'off',
camelcase: 'off',
'@typescript-eslint/camelcase': [
'error',
{
properties: 'always',
ignoreDestructuring: false,
ignoreDestructuring: false
}
],
'@typescript-eslint/class-name-casing': 'error',
Expand Down Expand Up @@ -145,10 +145,11 @@ module.exports = {
allowAsParameter: true
}
],
'@typescript-eslint/no-require-imports': 'error',
'@typescript-eslint/no-this-alias': [
'error',
{
allowDestructuring: true,
allowDestructuring: true
}
],
'@typescript-eslint/no-triple-slash-reference': 'error',
Expand Down

0 comments on commit c7fcf83

Please sign in to comment.