Socket
Socket
Sign inDemoInstall

@jict/eslint-plugin

Package Overview
Dependencies
Maintainers
3
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jict/eslint-plugin - npm Package Compare versions

Comparing version 0.0.7 to 0.0.8

src/config/core.js

9

CHANGELOG.md

@@ -0,1 +1,10 @@

## [0.0.8](https://github.com/justincase-jp/web-configs/compare/eslint-plugin@0.0.7...eslint-plugin@0.0.8) (2022-02-01)
### Features
* disable import/no-unresolved rule in typescript ([#4](https://github.com/justincase-jp/web-configs/issues/4)) ([0dc5382](https://github.com/justincase-jp/web-configs/commit/0dc538211a54ef2fd88f8a2327fc1f197de3bebb))
## [0.0.7](https://github.com/justincase-jp/web-configs/compare/eslint-plugin@0.0.6...eslint-plugin@0.0.7) (2022-01-28)

@@ -2,0 +11,0 @@

20

index.js

@@ -6,17 +6,17 @@ module.exports = {

// Core configs - When extending, one of these should go first
core: require('./config/core'),
es5: require('./config/es5'),
esnext: require('./config/esnext'),
react: require('./config/react'),
typescript: require('./config/typescript'),
'typescript-type-checking': require('./config/typescript-type-checking'),
core: require('./src/config/core'),
es5: require('./src/config/es5'),
esnext: require('./src/config/esnext'),
react: require('./src/config/react'),
typescript: require('./src/config/typescript'),
'typescript-type-checking': require('./src/config/typescript-type-checking'),
// Augmenting configs - When extending, these go after the core config
graphql: require('./config/graphql'),
jest: require('./config/jest'),
node: require('./config/node'),
graphql: require('./src/config/graphql'),
jest: require('./src/config/jest'),
node: require('./src/config/node'),
// Prettier config - When extending, this must go last
prettier: require('./config/prettier'),
prettier: require('./src/config/prettier'),
},
};
{
"name": "@jict/eslint-plugin",
"version": "0.0.7",
"version": "0.0.8",
"description": "justInCaseTechnologies's ESLint rules and configs.",

@@ -16,2 +16,6 @@ "main": "index.js",

"homepage": "https://github.com/justincase-jp/web-configs/blob/main/packages/eslint-plugin/README.md",
"scripts": {
"changelog": "conventional-changelog -t eslint-plugin@ -p angular -i CHANGELOG.md -s --commit-path . --lerna-package eslint-plugin",
"release": "esno ../../scripts/release.ts"
},
"peerDependencies": {

@@ -41,8 +45,3 @@ "eslint": "^8.3.0"

"graphql": "15.8.0"
},
"scripts": {
"changelog": "conventional-changelog -t eslint-plugin@ -p angular -i CHANGELOG.md -s --commit-path . --lerna-package eslint-plugin",
"release": "esno ../../scripts/release.ts"
},
"readme": "# `@jict/eslint-plugin`\n\n[![npm version](https://badge.fury.io/js/%40jict%2Feslint-plugin.svg)](https://badge.fury.io/js/%40jict%2Feslint-plugin.svg)\n\njustInCaseTechnologies's ESLint rules and configs.\n\n## Installation\n\nYou'll first need to install [ESLint](http://eslint.org):\n\n**With Yarn**\n\n```bash\nyarn add --dev eslint\n```\n\n**With npm**\n\n```bash\n$ npm i eslint --save-dev\n```\n\nNext, install `@jict/eslint-plugin`:\n\n**With Yarn**\n```bash\nyarn add --dev @jict/eslint-plugin\n```\n\n**With npm**\n```bash\n$ npm install @jict/eslint-plugin --save-dev\n```\n\n**Note:** If you installed ESLint globally (using the `-g` flag) then you must also install `@jict/eslint-plugin` globally.\n\n## Usage\n\njustInCaseTechnologies's ESLint configs come bundled in this package. In order to use them, you simply extend the relevant configuration in your project's `.eslintrc`. For example, the following will extend the ESNext (ES2015 and later) config:\n\n```json\n{\n \"extends\": \"plugin:@jict/esnext\"\n}\n```\n\nIf you are working on an ES5 project, extend the ES5 version of the configuration:\n\n```json\n{\n \"extends\": \"plugin:@jict/es5\"\n}\n```\n\nYou can also add some \"augmenting\" configs on top of the \"core\" config by extending an array of linting configs. For example, the following configuration would provide a base ESNext config that is augmented by a React config:\n\n```json\n{\n \"extends\": [\n \"plugin:@jict/esnext\",\n \"plugin:@jict/react\"\n ]\n}\n```\n\nLikewise, if you are using TypeScript and React, the following configuration extends the TypeScript base config with the React-specific rules provided by the React configuration file. To demonstrate multiple augmentations, we've also added the Prettier config, which disables rules that will conflict in projects using prettier.\n\n```json\n{\n \"extends\": [\n \"plugin:@jict/typescript\",\n \"plugin:@jict/react\",\n \"plugin:@jict/prettier\",\n ]\n}\n```\n\n## Provided configurations\n\nThis plugin provides the following core configurations:\n\n- [esnext](lib/config/esnext.js): Use this for anything written with ES2015+ features.\n- [typescript](lib/config/typescript.js): Use this for Typescript projects. The rules enabled in this confige do not require type-checking to run. To enable all Typescript rules, you must augment this config with the `typescript-type-checking` config mentioned below.\n- [es5](lib/config/es5.js): Use this for legacy projects.\n\nThis plugin also provides the following tool-specific configurations, which can be used on top of the core configurations:\n\n- [typescript-type-checking](lib/config/typescript-type-checking.js) Use this config to augment the `typescript` config to enable all TypeScript rules, including those that require type checking. These rules are slower to run and and you will need to specify a path to your tsconfig.json file in the \"project\" property of \"parserOptions\". The following example would provide all of the TypeScript rules, assuming the tsconfig.json is in the same directory as you ESlint configuration.\n\n```json\n{\n \"extends\": [\n \"plugin:@jict/typescript\",\n \"plugin:@jict/typescript-type-checking\"\n ],\n \"parserOptions\": {\n \"project\": \"tsconfig.json\"\n }\n}\n```\n- [react](lib/config/react.js): Use this for React projects.\n- [graphql](lib/config/graphql.js): Use this for projects that use [graphql-config](https://github.com/prisma/graphql-config) for graphql validation.\n- [prettier](lib/config/prettier.js): Use [prettier](https://github.com/prettier/prettier) for consistent formatting. Extending this justInCaseTechnologies's prettier config will [override](https://github.com/prettier/eslint-config-prettier/blob/master/index.js) the default justInCaseTechnologies eslint rules in favor of prettier formatting. Prettier must be installed within your project, as @jict/eslint-plugin does not provide the dependency itself.\n\n### node\n\nIf you are working on a node module, we also provide the [node configuration](lib/config/node.js) for you. Note that this configuration needs to be used in conjunction with one of the core configurations (either `es5` or `esnext`). If you plan to transpile your code using Babel, use the `esnext` config. If you do not plan to do so, the config you choose depends on the version of node you wish to support, and how many ESNext features are natively available in that version. You can see a detailed list of what version of node supports what new JavaScript features by visiting http://node.green.\n\nA node project that will use Babel for transpilation would need the following ESLint config:\n\n```json\n{\n \"extends\": [\n \"plugin:@jict/esnext\",\n \"plugin:@jict/node\"\n ]\n}\n```\n\n### Supported Typescript version\n\nThe supported version of TypeScript is constrained by the [@typescipt-eslint parser support](https://github.com/typescript-eslint/typescript-eslint#supported-typescript-version) that is installed.\n"
}
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc