@becklyn/eslint 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-test.log +5 -0
- package/CHANGELOG.md +13 -0
- package/README.md +27 -0
- package/eslint.js +12 -0
- package/package.json +26 -0
package/CHANGELOG.md
ADDED
package/README.md
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# eslint-config
|
|
2
|
+
|
|
3
|
+
The eslint-config base we use for our TypeScript apps.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
Use in your `.eslintrc.js`:
|
|
8
|
+
|
|
9
|
+
```js
|
|
10
|
+
/** @type {import("eslint").Linter.Config} */
|
|
11
|
+
module.exports = {
|
|
12
|
+
extends: [
|
|
13
|
+
"@becklyn/eslint-config/eslint.js",
|
|
14
|
+
"plugin:@dword-design/import-alias/recommended",
|
|
15
|
+
],
|
|
16
|
+
rules: {
|
|
17
|
+
"@dword-design/import-alias/prefer-alias": [
|
|
18
|
+
"error",
|
|
19
|
+
{
|
|
20
|
+
alias: {
|
|
21
|
+
"@": ".",
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
],
|
|
25
|
+
},
|
|
26
|
+
};
|
|
27
|
+
```
|
package/eslint.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/** @type {import("eslint").Linter.Config} */
|
|
2
|
+
module.exports = {
|
|
3
|
+
plugins: ["react"],
|
|
4
|
+
extends: ["next"],
|
|
5
|
+
rules: {
|
|
6
|
+
"react/jsx-curly-brace-presence": [
|
|
7
|
+
2,
|
|
8
|
+
{ props: "never", children: "never", propElementValues: "ignore" },
|
|
9
|
+
],
|
|
10
|
+
},
|
|
11
|
+
ignorePatterns: ["node_modules/", "dist/"],
|
|
12
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@becklyn/eslint",
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"description": "the eslint-config base we use for our TypeScript apps",
|
|
6
|
+
"homepage": "https://github.com/Becklyn-Studios/ts-libs",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/Becklyn-Studios/ts-libs.git",
|
|
10
|
+
"directory": "packages/eslint-config"
|
|
11
|
+
},
|
|
12
|
+
"files": [
|
|
13
|
+
"**/*"
|
|
14
|
+
],
|
|
15
|
+
"scripts": {
|
|
16
|
+
"test": "echo \"Error: no test specified\" && exit 0"
|
|
17
|
+
},
|
|
18
|
+
"dependencies": {
|
|
19
|
+
"@dword-design/eslint-plugin-import-alias": "^5.1.1",
|
|
20
|
+
"@next/eslint-plugin-next": "^14.1.1",
|
|
21
|
+
"eslint": "^8.57.1",
|
|
22
|
+
"eslint-config-next": "^14.2.17",
|
|
23
|
+
"eslint-plugin-react": "^7.37.2",
|
|
24
|
+
"eslint-plugin-storybook": "^0.8.0"
|
|
25
|
+
}
|
|
26
|
+
}
|