Skip to content

Commit 06ae06f

Browse files
authored
Merge pull request #193 from pagesource/feature/bug-fixing
fix: fixed linting configuration and command
2 parents 558154d + e112ef5 commit 06ae06f

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

.changeset/short-days-retire.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'create-universal-react': minor
3+
---
4+
5+
Fixed error of running linting command from root level
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
module.exports = {
2+
extends: [
3+
'airbnb',
4+
'airbnb/hooks',
5+
'airbnb-typescript',
6+
'plugin:@next/next/recommended',
7+
'prettier'
8+
],
9+
settings: {
10+
next: {
11+
rootDir: ['apps/*/', 'packages/*/']
12+
}
13+
},
14+
parserOptions: {
15+
project: './tsconfig.json'
16+
},
17+
rules: {
18+
'@next/next/no-html-link-for-pages': 'off',
19+
'react/jsx-key': 'off',
20+
'import/no-extraneous-dependencies': 'off',
21+
'react/function-component-definition': 'off',
22+
'no-restricted-exports': 'off',
23+
'react/jsx-props-no-spreading': 'off'
24+
},
25+
env: {
26+
browser: true,
27+
es2021: true,
28+
jest: true
29+
}
30+
};

0 commit comments

Comments
 (0)