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 = {
|
module.exports = {
|
||||||
root: true,
|
|
||||||
extends: [
|
extends: [
|
||||||
"eslint:recommended",
|
"eslint:recommended",
|
||||||
],
|
],
|
||||||
@ -90,9 +92,6 @@ module.exports = {
|
|||||||
"prefer-rest-params": "error",
|
"prefer-rest-params": "error",
|
||||||
"prefer-spread": "error",
|
"prefer-spread": "error",
|
||||||
"template-curly-spacing": "error",
|
"template-curly-spacing": "error",
|
||||||
|
|
||||||
// Plugins
|
|
||||||
"compat/compat": "off", // override locally for browser-targeted projects
|
|
||||||
},
|
},
|
||||||
overrides: [
|
overrides: [
|
||||||
{
|
{
|
||||||
@ -101,7 +100,7 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
// TODO: TypeScript-only config
|
// 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",
|
"version": "3.0.0",
|
||||||
"description": "My ESLint config. Inspired heavily by eslint-config-google and moderately by eslint-config-airbnb.",
|
"description": "My ESLint config. Inspired heavily by eslint-config-google and moderately by eslint-config-airbnb.",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
"repository": "jakejarvis/eslint-config",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "Jake Jarvis",
|
"name": "Jake Jarvis",
|
||||||
"email": "jake@jarv.is",
|
"email": "jake@jarv.is",
|
||||||
"url": "https://jarv.is/"
|
"url": "https://jarv.is/"
|
||||||
},
|
},
|
||||||
"repository": {
|
|
||||||
"type": "git",
|
|
||||||
"url": "https://github.com/jakejarvis/eslint-config.git"
|
|
||||||
},
|
|
||||||
"main": "index.js",
|
|
||||||
"files": [
|
"files": [
|
||||||
"index.js"
|
"index.js"
|
||||||
],
|
],
|
||||||
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"lint": "eslint .",
|
"lint": "eslint .",
|
||||||
"lint:fix": "eslint --fix ."
|
"lint:fix": "eslint --fix ."
|
||||||
},
|
},
|
||||||
"dependencies": {},
|
"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": {
|
"devDependencies": {
|
||||||
"eslint": "^8.2.0"
|
"eslint": "^8.15.0"
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"eslint": "^7 || >=8"
|
||||||
},
|
},
|
||||||
"eslintConfig": {
|
"eslintConfig": {
|
||||||
"extends": "./index.js",
|
"extends": "./index.js",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user