Skip to content

Commit

Permalink
build: refactor lint code with eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
luismayta committed May 2, 2021
1 parent a09fb8f commit 00e3f79
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/linters/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
module.exports = {
parser: '@typescript-eslint/parser',
env: {
node: true,
es2021: true
},
parserOptions: {
ecmaVersion: 6,
sourceType: 'module' // Allows for the use of imports
},
extends: [
'plugin:prettier/recommended',
'plugin:@typescript-eslint/recommended', // Uses the recommended rules from the @typescript-eslint/eslint-plugin
'plugin:import/warnings'
],
plugins: ['@typescript-eslint'],
rules: {
'@typescript-eslint/semicolon': 'off',
'@typescript-eslint/member-delimiter-style': 'off',
'@typescript-eslint/naming-convention': 'warn',
'@typescript-eslint/semi': 'off',
'no-throw-literal': 'warn',
curly: 'warn',
eqeqeq: 'warn',
semi: 'off'
},
ignorePatterns: ['**/*.d.ts']
}

0 comments on commit 00e3f79

Please sign in to comment.