Skip to content

Commit

Permalink
fix: eslint config
Browse files Browse the repository at this point in the history
  • Loading branch information
abhijithvijayan committed Mar 30, 2024
1 parent e061a00 commit d4b80ba
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 32 deletions.
46 changes: 25 additions & 21 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,27 @@
{
"extends": [
"@abhijithvijayan/eslint-config/typescript",
"@abhijithvijayan/eslint-config/node"
],
"parserOptions": {
"project": "./tsconfig.eslint.json",
"sourceType": "module"
},
"env": {
"jest": true
},
"rules": {
"no-console": "off",
"node/shebang": "off",
"no-param-reassign": "warn",
"@typescript-eslint/no-use-before-define": "warn",
"@typescript-eslint/no-explicit-any": "warn",
"node/no-unsupported-features/es-syntax": ["error", {
"ignores": ["modules"]
}]
}
"extends": [
"@abhijithvijayan/eslint-config/typescript",
"@abhijithvijayan/eslint-config/node"
],
"parserOptions": {
"project": "./tsconfig.json",
"sourceType": "module"
},
"env": {
"jest": true
},
"rules": {
"no-console": "off",
"node/shebang": "off",
"no-param-reassign": "warn",
"@typescript-eslint/no-use-before-define": "warn",
"@typescript-eslint/no-explicit-any": "warn",
"import/no-import-module-exports": "off",
"node/no-unsupported-features/es-syntax": [
"error",
{
"ignores": ["modules"]
}
]
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/match.test.ts → source/tests/match.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {CUSTOM_PREFIX_REGEX} from '../source/constants';
import {CUSTOM_PREFIX_REGEX} from '../constants';

describe('RegExp tests', () => {
const invalidMatches = [
Expand Down
5 changes: 2 additions & 3 deletions tests/transform.test.ts → source/tests/transform.test.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import {transformManifest} from '../source/transform';
import {Browser} from '../source/constants';

import manifest from './manifest.json';
import chromeOutput from './chrome.json';
import firefoxOutput from './firefox.json';
import {transformManifest} from '../transform';
import {Browser} from '../constants';

describe('transformManifest tests', () => {
it('should return empty object', () => {
Expand Down
7 changes: 0 additions & 7 deletions tsconfig.eslint.json

This file was deleted.

0 comments on commit d4b80ba

Please sign in to comment.