eslint-plugin-kyt
Advanced tools
Comparing version 1.0.0-alpha.febad9a6 to 1.1.3
@@ -1,5 +0,11 @@ | ||
const noPropsSpread = require('./rules/no-props-spread'); | ||
const defaultProps = require('./rules/default-props').rule; | ||
const cssInJsNamespace = require('./rules/css-in-js-namespace').rule; | ||
const noDirectMomentImport = require('./rules/no-direct-moment-import').rule; | ||
const validateDoubleUnderscoreDirs = require('./rules/validate-double-underscore-dirs').rule; | ||
exports.rules = { | ||
'no-props-spread': noPropsSpread, | ||
'default-props': defaultProps, | ||
'css-in-js-namespace': cssInJsNamespace, | ||
'no-direct-moment-import': noDirectMomentImport, | ||
'validate-double-underscore-dirs': validateDoubleUnderscoreDirs, | ||
}; |
{ | ||
"name": "eslint-plugin-kyt", | ||
"version": "1.0.0-alpha.febad9a6", | ||
"description": "ESLint plugin for kyt projects.", | ||
"version": "1.1.3", | ||
"description": "ESLint plugin for Vi-specific rules.", | ||
"main": "lib/index.js", | ||
"author": "NYTimes", | ||
"license": "Apache-2.0", | ||
"repository": "git+https://github.com/nytimes/kyt/packages/eslint-plugin-kyt", | ||
"repository": "git+https://github.com/nytimes/kyt", | ||
"bugs": "https://github.com/nytimes/kyt/issues", | ||
@@ -17,7 +17,11 @@ "homepage": "https://github.com/nytimes/kyt#readme", | ||
"devDependencies": { | ||
"mocha": "^5.2.0" | ||
"@babel/plugin-proposal-class-properties": "7.12.1", | ||
"@babel/preset-env": "7.12.1", | ||
"@babel/preset-react": "7.12.1", | ||
"mocha": "8.2.0" | ||
}, | ||
"scripts": { | ||
"test": "mocha tests --recursive" | ||
} | ||
"test": "mocha tests --recursive ./tests" | ||
}, | ||
"gitHead": "bb413212b65097a58ffa0876b48daa7b7735509d" | ||
} |
@@ -1,1 +0,38 @@ | ||
# kyt ESLint Plugin | ||
### eslint-plugin-kyt | ||
## Installation | ||
```sh | ||
$ yarn add --dev eslint-plugin-kyt | ||
$ npm i --save-dev --save-exact eslint-plugin-kyt | ||
``` | ||
Add to the `plugins` and `rules` sections of your ESLint configuration: | ||
`.eslintrc(.json)`: | ||
```json | ||
{ | ||
"plugins": ["kyt"], | ||
"rules": { | ||
"kyt/css-in-js-namespace": "error", | ||
"kyt/default-props": "error", | ||
"kyt/no-direct-moment-import": "error", | ||
"kyt/validate-double-underscore-dirs": "error" | ||
} | ||
} | ||
``` | ||
`.eslintrc.js`: | ||
```js | ||
module.exports = { | ||
plugins: ['kyt'], | ||
rules: { | ||
'kyt/css-in-js-namespace': 'error', | ||
'kyt/default-props': 'error', | ||
'kyt/no-direct-moment-import': 'error', | ||
'kyt/validate-double-underscore-dirs': 'error', | ||
}, | ||
}; | ||
``` |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the 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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
18907
14
596
0
39
4
1