Skip to content

Commit

Permalink
feat: import existing eslint config
Browse files Browse the repository at this point in the history
  • Loading branch information
rintaun committed Dec 10, 2020
1 parent 737fa05 commit ea8f97b
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
module.exports = {
env: {
es6: true,
commonjs: true,
node: true,
},
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
},
parserOptions: {
ecmaVersion: 2019,
sourceType: 'module',
},
extends: [
'eslint:recommended',
'plugin:prettier/recommended',
'plugin:import/errors',
'plugin:import/warnings',
'plugin:import/typescript',
'plugin:jsonc/auto-config',
],
plugins: ['@typescript-eslint', 'prettier', 'import'],
rules: {},
overrides: [
{
files: '**/*.ts{,x}',
parser: '@typescript-eslint/parser',
extends: [
'plugin:@typescript-eslint/recommended',
'prettier/@typescript-eslint',
],
rules: {
'no-unused-vars': 'off',
'import/no-named-as-default': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/interface-name-prefix': 'off',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-empty-interface': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unused-vars': [
'error',
{ args: 'none', argsIgnorePattern: '^_' },
],
},
},
],
}

0 comments on commit ea8f97b

Please sign in to comment.