Skip to content

Commit 75ed13e

Browse files
authored
Merge pull request #163 from pagesource/fix/linting-setup
Fix/linting setup
2 parents 8612a08 + ea908fd commit 75ed13e

64 files changed

Lines changed: 1940 additions & 15604 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.changeset/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
"baseBranch": "develop",
88
"updateInternalDependencies": "patch",
99
"ignore": []
10-
}
10+
}

.editorconfig

Whitespace-only changes.

.eslintignore

Lines changed: 0 additions & 3 deletions
This file was deleted.

.eslintrc

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"parserOptions": {
3+
"ecmaVersion": 2020
4+
},
5+
"env": {
6+
"browser": true,
7+
"es6": true,
8+
"node": true
9+
},
10+
"extends": ["airbnb", "prettier"],
11+
"overrides": [
12+
{
13+
"files": ["scripts/*.js"],
14+
"rules": {
15+
"no-console": "off"
16+
}
17+
},
18+
{
19+
"files": ["scripts/test.js"],
20+
"rules": {
21+
"jest/no-jest-import": "off"
22+
}
23+
}
24+
],
25+
"rules": {
26+
"import/no-dynamic-require": "off",
27+
"global-require": "off"
28+
}
29+
}

.eslintrc.js

Lines changed: 0 additions & 73 deletions
This file was deleted.

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,6 @@ reports
99
# Dependency directories
1010
node_modules/
1111
.DS_Store
12-
.next
12+
.next
13+
package-lock.json
14+
yarn.lock

.lintstagedrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
{
22
'*.js': ['eslint --fix'],
3+
'*.(js|jsx|ts|tsx)': ['prettier --write']
34
}

.prettierignore

Lines changed: 0 additions & 3 deletions
This file was deleted.

.prettierrc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"printWidth": 90,
3-
"singleQuote": true,
4-
"tabWidth": 2,
5-
"trailingComma":"none"
6-
}
2+
"printWidth": 90,
3+
"singleQuote": true,
4+
"tabWidth": 2,
5+
"trailingComma": "none"
6+
}

.vscode/launch.json

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11
{
2-
// Use IntelliSense to learn about possible attributes.
3-
// Hover to view descriptions of existing attributes.
4-
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5-
"version": "0.2.0",
6-
"configurations": [
7-
{
8-
"type": "node",
9-
"request": "launch",
10-
"name": "Launch Program",
11-
"skipFiles": [
12-
"<node_internals>/**"
13-
],
14-
"program": "${workspaceFolder}\\index.js"
15-
}
16-
]
17-
}
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"type": "node",
9+
"request": "launch",
10+
"name": "Launch Program",
11+
"skipFiles": ["<node_internals>/**"],
12+
"program": "${workspaceFolder}\\index.js"
13+
}
14+
]
15+
}

0 commit comments

Comments
 (0)