Skip to content

Commit

Permalink
fix(lint): eslint file was missing
Browse files Browse the repository at this point in the history
  • Loading branch information
sneko committed Jun 13, 2024
1 parent e7c8e90 commit e136917
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
extends: ['eslint:recommended', 'prettier'],
plugins: ['@typescript-eslint', 'import'],
parserOptions: {
ecmaVersion: 2021,
sourceType: 'module',
},
env: { node: true, jest: true },
ignorePatterns: ['data', 'dist'],
rules: {
'interface-name': 'off',
'no-console': 'off',
'no-implicit-dependencies': 'off',
'no-submodule-imports': 'off',
'no-trailing-spaces': 'error',
'no-unused-vars': 'off',
// When hunting dead code it's useful to use the following:
// ---
// 'no-unused-vars': 'error',
// 'import/no-unused-modules': [1, { unusedExports: true }],
},
overrides: [
{
files: ['src/clients/figma/core/*.ts', 'src/clients/penpot/core/*.ts'],
rules: {
'no-prototype-builtins': 'off',
'no-undef': 'off',
},
},
],
};

0 comments on commit e136917

Please sign in to comment.