configs: divided configs into files
This commit is contained in:
parent
ace7220a74
commit
79fd6e90ed
24
core.js
Normal file
24
core.js
Normal file
@ -0,0 +1,24 @@
|
||||
module.exports = {
|
||||
env: {
|
||||
browser: true,
|
||||
es2022: true,
|
||||
node: true,
|
||||
},
|
||||
parserOptions: {
|
||||
ecmaVersion: 2022,
|
||||
},
|
||||
parser: '@typescript-eslint/parser',
|
||||
extends: [
|
||||
'canonical',
|
||||
'plugin:sonarjs/recommended',
|
||||
'eslint:recommended',
|
||||
'prettier',
|
||||
],
|
||||
overrides: [
|
||||
{
|
||||
extends: ['canonical/typescript'],
|
||||
files: '*.ts',
|
||||
},
|
||||
],
|
||||
plugins: ['canonical', 'sonarjs', '@typescript-eslint', 'prettier'],
|
||||
};
|
||||
17
graphql.js
Normal file
17
graphql.js
Normal file
@ -0,0 +1,17 @@
|
||||
module.exports = {
|
||||
env: {
|
||||
browser: true,
|
||||
es2022: true,
|
||||
node: true,
|
||||
},
|
||||
parserOptions: {
|
||||
ecmaVersion: 2022,
|
||||
},
|
||||
overrides: [
|
||||
|
||||
{
|
||||
extends: ['canonical/graphql'],
|
||||
files: ['*.graphql'],
|
||||
},
|
||||
],
|
||||
};
|
||||
16
json.js
Normal file
16
json.js
Normal file
@ -0,0 +1,16 @@
|
||||
module.exports = {
|
||||
env: {
|
||||
browser: true,
|
||||
es2022: true,
|
||||
node: true,
|
||||
},
|
||||
parserOptions: {
|
||||
ecmaVersion: 2022,
|
||||
},
|
||||
overrides: [
|
||||
{
|
||||
extends: ['canonical/json'],
|
||||
files: '*.json',
|
||||
},
|
||||
],
|
||||
};
|
||||
21
next.js
Normal file
21
next.js
Normal file
@ -0,0 +1,21 @@
|
||||
module.exports = {
|
||||
env: {
|
||||
browser: true,
|
||||
es2022: true,
|
||||
node: true,
|
||||
},
|
||||
parserOptions: {
|
||||
ecmaVersion: 2022,
|
||||
},
|
||||
extends: ['next'],
|
||||
overrides: [
|
||||
{
|
||||
extends: ['canonical/react', 'canonical/typescript'],
|
||||
files: '*.tsx',
|
||||
},
|
||||
{
|
||||
extends: ['canonical/react'],
|
||||
files: '*.jsx',
|
||||
},
|
||||
],
|
||||
};
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@vchikalkin/eslint-config-awesome",
|
||||
"version": "1.0.0",
|
||||
"version": "1.0.1",
|
||||
"license": "MIT",
|
||||
"main": "index.js",
|
||||
"devDependencies": {
|
||||
|
||||
17
testing.js
Normal file
17
testing.js
Normal file
@ -0,0 +1,17 @@
|
||||
module.exports = {
|
||||
env: {
|
||||
browser: true,
|
||||
es2022: true,
|
||||
node: true,
|
||||
},
|
||||
parserOptions: {
|
||||
ecmaVersion: 2022,
|
||||
},
|
||||
overrides: [
|
||||
{
|
||||
files: ['**/__tests__/**/*.[jt]s?(x)', '**/?(*.)+(spec|test).[jt]s?(x)'],
|
||||
extends: ['plugin:testing-library/react', 'canonical/jest'],
|
||||
},
|
||||
],
|
||||
plugins: ['testing-library'],
|
||||
};
|
||||
Loading…
x
Reference in New Issue
Block a user