1
mirror of https://github.com/jakejarvis/eslint-config.git synced 2025-04-26 01:45:25 -04:00

remove optional peerDependencies

This commit is contained in:
Jake Jarvis 2022-05-10 20:01:37 -04:00
parent cbe2b1e5fa
commit 58062a0bc0
Signed by: jake
GPG Key ID: 2B0C9CF251E69A39
2 changed files with 10 additions and 24 deletions

View File

@ -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"],
},
],
};

View File

@ -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",