Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-plugin-kyt

Package Overview
Dependencies
Maintainers
4
Versions
147
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-kyt - npm Package Compare versions

Comparing version 1.0.0-alpha.febad9a6 to 1.1.3

.babelrc.js

10

lib/index.js

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

16

package.json
{
"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',
},
};
```
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