Skip to content

Commit

Permalink
Fix angular-cli eslintrc
Browse files Browse the repository at this point in the history
  • Loading branch information
Hypnosphi committed Oct 3, 2019
1 parent c913b7f commit 2f10558
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
8 changes: 5 additions & 3 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,25 @@
const ignore = 0;
// const warn = 1;
const error = 2;

module.exports = {
root: true,
extends: ['@storybook/eslint-config-storybook'],
rules: {
'import/extensions': [
'error',
error,
'never',
{ ignorePackages: true, md: 'always', svg: 'always', json: 'always', tag: 'always' },
],
'import/no-unresolved': [2, { ignore: ['@storybook'] }],
'import/no-unresolved': [error, { ignore: ['@storybook'] }],
'react/state-in-constructor': ignore,
'react/static-property-placement': ignore,
'react/jsx-props-no-spreading': ignore,
'react/jsx-fragments': ignore,
'@typescript-eslint/ban-ts-ignore': ignore,
'@typescript-eslint/no-object-literal-type-assertion': ignore,
'react/sort-comp': [
'warn',
error,
{
order: [
'staticLifecycle',
Expand Down
7 changes: 6 additions & 1 deletion examples/angular-cli/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
const ignore = 0;

module.exports = {
overrides: [
{
files: ['./stories/addon-jest.stories.ts'],
files: ['./src/stories/addon-jest.stories.ts'],
rules: {
'import/no-useless-path-segments': ignore,
},
settings: {
'import/core-modules': ['../../addon-jest.testresults.json'],
},
Expand Down

0 comments on commit 2f10558

Please sign in to comment.