cli: add and use app:lint + include default eslint config in cli
This commit is contained in:
+4
-31
@@ -16,39 +16,12 @@ const copyrightTemplate = `/*
|
||||
|
||||
`;
|
||||
|
||||
const base = require('@spotify-backstage/cli/config/eslint');
|
||||
|
||||
module.exports = {
|
||||
extends: [
|
||||
'@spotify/eslint-config-base',
|
||||
'@spotify/eslint-config-react',
|
||||
'@spotify/eslint-config-typescript',
|
||||
'prettier',
|
||||
'prettier/react',
|
||||
'prettier/@typescript-eslint',
|
||||
'plugin:jest/recommended',
|
||||
],
|
||||
parser: '@typescript-eslint/parser',
|
||||
plugins: ['notice'],
|
||||
env: {
|
||||
jest: true,
|
||||
},
|
||||
parserOptions: {
|
||||
ecmaVersion: 2018,
|
||||
sourceType: 'module',
|
||||
},
|
||||
settings: {
|
||||
react: {
|
||||
version: 'detect',
|
||||
},
|
||||
},
|
||||
// Adding this to .eslintignore just doesn't even, let me know if you can make it work ._.
|
||||
ignorePatterns: [
|
||||
'**/*_pb.js',
|
||||
'**/*_pb.d.ts',
|
||||
'**/dist/**',
|
||||
'**/cjs/**',
|
||||
'**/esm/**',
|
||||
],
|
||||
...base,
|
||||
rules: {
|
||||
...base.rules,
|
||||
'notice/notice': [
|
||||
'error',
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user