@mkappelhof/eslint-config-remix 1.0.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/.eslintrc.yml +7 -0
- package/.prettierrc +1 -0
- package/CHANGELOG.md +7 -0
- package/README.md +21 -0
- package/index.js +1 -0
- package/package.json +35 -0
- package/rollup.config.js +1 -0
package/.eslintrc.yml
ADDED
package/.prettierrc
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"@mkappelhof/prettier-config"
|
package/CHANGELOG.md
ADDED
package/README.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Shared ESLint configuration for Remix projects
|
|
2
|
+
|
|
3
|
+
This ESLint configuration is for projects that use Remix.
|
|
4
|
+
|
|
5
|
+
- For Next.js projects use [@mkappelhof/eslint-config-next](https://www.npmjs.com/package/@mkappelhof/eslint-config-next)
|
|
6
|
+
- For React projects use [@mkappelhof/eslint-config-react](https://www.npmjs.com/package/@mkappelhof/eslint-config-react)
|
|
7
|
+
- For Node.js projects use [@mkappelhof/eslint-config-node](https://www.npmjs.com/package/@mkappelhof/eslint-config-node)
|
|
8
|
+
|
|
9
|
+
## Installation
|
|
10
|
+
|
|
11
|
+
Add the configuration as a dev dependency:
|
|
12
|
+
|
|
13
|
+
`yarn add @mkappelhof/eslint-config-remix`
|
|
14
|
+
|
|
15
|
+
Then create a `.eslintrc.js` config file with the following content:
|
|
16
|
+
|
|
17
|
+
```JavaScript
|
|
18
|
+
module.exports = {
|
|
19
|
+
extends: ['@mkappelhof/eslint-config-remix'],
|
|
20
|
+
};
|
|
21
|
+
```
|
package/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = { extends: './.eslintrc.yml' };
|
package/package.json
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@mkappelhof/eslint-config-remix",
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"main": "index.js",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": "git@github.com:mkappelhof/frontend-tools.git",
|
|
7
|
+
"author": "Maurice Kappelhof <maurice@mauricekappelhof.nl>",
|
|
8
|
+
"scripts": {
|
|
9
|
+
"build": "rollup -c",
|
|
10
|
+
"test": "yaml-validator .eslintrc.yml"
|
|
11
|
+
},
|
|
12
|
+
"dependencies": {
|
|
13
|
+
"@mkappelhof/eslint-config-base": "*",
|
|
14
|
+
"@mkappelhof/eslint-config-react": "*",
|
|
15
|
+
"@mkappelhof/prettier-config": "*",
|
|
16
|
+
"eslint-config-next": "13.4.13",
|
|
17
|
+
"eslint-plugin-react": "7.33.1",
|
|
18
|
+
"yaml-validator": "5.1.0"
|
|
19
|
+
},
|
|
20
|
+
"peerDependencies": {
|
|
21
|
+
"eslint": "8.46.0",
|
|
22
|
+
"react": "18.2.0",
|
|
23
|
+
"typescript": "5.1.6"
|
|
24
|
+
},
|
|
25
|
+
"keywords": [
|
|
26
|
+
"eslint",
|
|
27
|
+
"config",
|
|
28
|
+
"remix.js",
|
|
29
|
+
"remix.run",
|
|
30
|
+
"typescript"
|
|
31
|
+
],
|
|
32
|
+
"devDependencies": {
|
|
33
|
+
"@remix-run/eslint-config": "2.1.0"
|
|
34
|
+
}
|
|
35
|
+
}
|
package/rollup.config.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('../eslint-config-base/rollup.config.js');
|