mirror of
https://github.com/jakejarvis/eslint-config.git
synced 2025-04-26 06:25:23 -04:00
remove optional peerDependencies
This commit is contained in:
parent
cbe2b1e5fa
commit
58062a0bc0
9
index.js
9
index.js
@ -1,5 +1,7 @@
|
||||
/**
|
||||
* @type {import("eslint").Linter.Config}
|
||||
*/
|
||||
module.exports = {
|
||||
root: true,
|
||||
extends: [
|
||||
"eslint:recommended",
|
||||
],
|
||||
@ -90,9 +92,6 @@ module.exports = {
|
||||
"prefer-rest-params": "error",
|
||||
"prefer-spread": "error",
|
||||
"template-curly-spacing": "error",
|
||||
|
||||
// Plugins
|
||||
"compat/compat": "off", // override locally for browser-targeted projects
|
||||
},
|
||||
overrides: [
|
||||
{
|
||||
@ -101,7 +100,7 @@ module.exports = {
|
||||
},
|
||||
{
|
||||
// TODO: TypeScript-only config
|
||||
files: ["*.ts", "*.tsx", "*.d.ts"],
|
||||
files: ["*.ts"],
|
||||
},
|
||||
],
|
||||
};
|
||||
|
25
package.json
25
package.json
@ -3,39 +3,26 @@
|
||||
"version": "3.0.0",
|
||||
"description": "My ESLint config. Inspired heavily by eslint-config-google and moderately by eslint-config-airbnb.",
|
||||
"license": "MIT",
|
||||
"repository": "jakejarvis/eslint-config",
|
||||
"author": {
|
||||
"name": "Jake Jarvis",
|
||||
"email": "jake@jarv.is",
|
||||
"url": "https://jarv.is/"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/jakejarvis/eslint-config.git"
|
||||
},
|
||||
"main": "index.js",
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"lint": "eslint .",
|
||||
"lint:fix": "eslint --fix ."
|
||||
},
|
||||
"dependencies": {},
|
||||
"peerDependencies": {
|
||||
"eslint": "^7 || >=8",
|
||||
"eslint-plugin-compat": "~4.0.0",
|
||||
"eslint-plugin-import": "~2.25.3"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"eslint-plugin-compat": {
|
||||
"optional": true
|
||||
},
|
||||
"eslint-plugin-import": {
|
||||
"optional": true
|
||||
}
|
||||
},
|
||||
"devDependencies": {
|
||||
"eslint": "^8.2.0"
|
||||
"eslint": "^8.15.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"eslint": "^7 || >=8"
|
||||
},
|
||||
"eslintConfig": {
|
||||
"extends": "./index.js",
|
||||
|
Loading…
x
Reference in New Issue
Block a user