feat: add typescript config
This commit is contained in:
parent
b904f71fac
commit
017166ab66
2
configs/react-typescript.js
vendored
2
configs/react-typescript.js
vendored
@ -5,7 +5,7 @@ const pluginNext = require('@next/eslint-plugin-next');
|
||||
|
||||
/** @type {import('eslint').Linter.Config} */
|
||||
module.exports = [
|
||||
{ name: 'ESLint config awesome' },
|
||||
{ name: 'ESLint Config Awesome - React/Next Typescript' },
|
||||
...auto,
|
||||
sonarjs.configs.recommended,
|
||||
{
|
||||
|
||||
27
configs/typescript.js
Normal file
27
configs/typescript.js
Normal file
@ -0,0 +1,27 @@
|
||||
const auto = require('eslint-config-canonical/configurations/auto');
|
||||
const sonarjs = require('eslint-plugin-sonarjs');
|
||||
const rules = require('../rules');
|
||||
|
||||
/** @type {import('eslint').Linter.Config} */
|
||||
module.exports = [
|
||||
{ name: 'ESLint Config Awesome - Typescript' },
|
||||
...auto,
|
||||
sonarjs.configs.recommended,
|
||||
{
|
||||
plugins: {
|
||||
import: require('eslint-plugin-import'),
|
||||
},
|
||||
},
|
||||
rules.common,
|
||||
rules.sonar,
|
||||
{
|
||||
ignores: [
|
||||
'**/node_modules',
|
||||
'**/package-lock.json',
|
||||
'**/pnpm-lock.yaml',
|
||||
'**/package.json',
|
||||
'**/tsconfig.json',
|
||||
'**/eslint.config.js',
|
||||
],
|
||||
},
|
||||
];
|
||||
Loading…
x
Reference in New Issue
Block a user