@jsenv/eslint-config
Advanced tools
Comparing version 16.0.9 to 16.1.0
{ | ||
"name": "@jsenv/eslint-config", | ||
"version": "16.0.9", | ||
"version": "16.1.0", | ||
"description": "Create ESLint configuration for any project", | ||
@@ -25,3 +25,3 @@ "license": "MIT", | ||
".": { | ||
"import": "./main.js", | ||
"import": "./src/main.js", | ||
"require": "./dist/jsenv_eslint_config.cjs" | ||
@@ -34,41 +34,30 @@ }, | ||
"/src/", | ||
"/babel.config.cjs", | ||
"/main.js" | ||
"/babel.config.cjs" | ||
], | ||
"scripts": { | ||
"eslint-check": "node ./node_modules/eslint/bin/eslint.js . --ext=.js,.mjs", | ||
"dist": "npm run build", | ||
"test": "node ./script/test/test.mjs", | ||
"generate-importmap": "node ./script/importmap/generate_importmap.mjs", | ||
"build": "node --experimental-import-meta-resolve ./script/build/build.mjs", | ||
"test-with-coverage": "npm run test -- --coverage", | ||
"prettier-format": "node ./script/prettier/prettier_format.mjs", | ||
"prettier-format-stage": "npm run prettier-format -- --staged", | ||
"prettier-check": "npm run prettier-format -- --dry-run", | ||
"upload-coverage": "node ./script/test/upload_coverage.mjs", | ||
"prepublishOnly": "node ./script/publish/remove_postinstall.mjs && npm run dist", | ||
"postpublish": "node ./script/publish/restore_postinstall.mjs" | ||
"eslint": "npx eslint . --ext=.js,.mjs,.cjs,.html", | ||
"test": "node ./scripts/test.mjs", | ||
"test:coverage": "npm run test -- --coverage", | ||
"build": "node ./scripts/build.mjs", | ||
"prettier": "prettier --write ." | ||
}, | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"@babel/core": "7.15.5", | ||
"@babel/eslint-parser": "7.15.7", | ||
"@babel/plugin-syntax-decorators": "7.14.5", | ||
"@babel/plugin-syntax-jsx": "7.14.5", | ||
"@babel/preset-env": "7.15.6", | ||
"@jsenv/assert": "2.3.1", | ||
"@jsenv/codecov-upload": "3.5.0", | ||
"@jsenv/core": "22.0.1", | ||
"@jsenv/github-release-package": "1.2.3", | ||
"@jsenv/importmap-eslint-resolver": "5.1.2", | ||
"@jsenv/importmap-node-module": "2.2.1", | ||
"@jsenv/package-publish": "1.6.2", | ||
"@jsenv/performance-impact": "1.7.0", | ||
"@jsenv/prettier-check-project": "5.6.1", | ||
"eslint": "7.32.0", | ||
"@babel/core": "7.18.6", | ||
"@babel/preset-env": "7.18.6", | ||
"@babel/eslint-parser": "7.18.2", | ||
"@babel/plugin-syntax-decorators": "7.18.6", | ||
"@babel/plugin-syntax-jsx": "7.18.6", | ||
"@jsenv/assert": "2.6.0", | ||
"@jsenv/core": "27.0.2", | ||
"@jsenv/eslint-import-resolver": "0.3.0", | ||
"@jsenv/github-release-package": "1.5.0", | ||
"@jsenv/package-publish": "1.10.0", | ||
"@jsenv/performance-impact": "3.0.1", | ||
"eslint": "8.19.0", | ||
"eslint-plugin-html": "6.2.0", | ||
"eslint-plugin-import": "2.24.2", | ||
"eslint-plugin-react": "7.26.1", | ||
"prettier": "2.4.1" | ||
"eslint-plugin-import": "2.26.0", | ||
"eslint-plugin-react": "7.30.1", | ||
"prettier": "2.7.1" | ||
} | ||
} | ||
} |
@@ -1,7 +0,10 @@ | ||
# eslint-config [![npm package](https://img.shields.io/npm/v/@jsenv/eslint-config.svg?logo=npm&label=package)](https://www.npmjs.com/package/@jsenv/eslint-config) [![github main](https://github.com/jsenv/eslint-config/workflows/main/badge.svg)](https://github.com/jsenv/eslint-config/actions?workflow=main) [![codecov coverage](https://codecov.io/gh/jsenv/eslint-config/branch/master/graph/badge.svg)](https://codecov.io/gh/eslint-config) | ||
# eslint-config [![npm package](https://img.shields.io/npm/v/@jsenv/eslint-config.svg?logo=npm&label=package)](https://www.npmjs.com/package/@jsenv/eslint-config) | ||
ESLint config file consists into a single big object. | ||
This package helps to split this big object into smaller objects. | ||
This is possible thanks to a function capable to compose objects together to obtain a final object needed to configure ESLint. | ||
ESLint config file consists into a single **big** object. This package allows to split and subset of ESLint configuration to compose and reuse them. | ||
- :+1: Part of configuration that belongs together can be regrouped | ||
- :+1: ESLint configuration is easier to read | ||
This is done thanks to a function capable to compose objects into a final ESLint configuration. | ||
# composeEslintConfig | ||
@@ -8,0 +11,0 @@ |
@@ -25,2 +25,3 @@ /** | ||
"max-len": ["off"], | ||
"no-confusing-arrow": ["off"], // prettier makes it non confusing | ||
"no-extra-semi": ["off"], | ||
@@ -27,0 +28,0 @@ "no-floating-decimal": ["off"], |
@@ -114,4 +114,6 @@ /* | ||
"no-cond-assign": ["error"], | ||
"no-confusing-arrow": ["error"], | ||
"no-const-assign": ["error"], | ||
"no-constant-condition": ["error"], | ||
"no-constant-binary-expression": ["error"], | ||
"no-constructor-return": ["error"], | ||
@@ -225,2 +227,3 @@ "no-control-regex": ["error"], | ||
"no-unused-labels": ["error"], | ||
"no-unused-private-class-members": ["error"], | ||
"no-unused-vars": ["error"], | ||
@@ -227,0 +230,0 @@ // this rule is bad, too much false positive, annoying |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16
1152
293
47257
14
1