Skip to content

Commit

Permalink
♻️ [eslint-config] refactor: rewrite use js
Browse files Browse the repository at this point in the history
  • Loading branch information
lemon-clown committed Mar 28, 2020
1 parent 5bbf931 commit 2e1129a
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 13 deletions.
11 changes: 11 additions & 0 deletions packages/eslint-config/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[![npm version](https://img.shields.io/npm/v/@barusu/eslint-config.svg)](https://www.npmjs.com/package/@barusu/eslint-config)
[![npm download](https://img.shields.io/npm/dm/@barusu/eslint-config.svg)](https://www.npmjs.com/package/@barusu/eslint-config)
[![npm license](https://img.shields.io/npm/l/@barusu/eslint-config.svg)](https://www.npmjs.com/package/@barusu/eslint-config)


# Usage

## Install
```shell
yarn add --dev @barusu/eslint-config
```
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export = {
module.exports = {
'extends': [
'plugin:@typescript-eslint/recommended',
'prettier/@typescript-eslint'
Expand All @@ -24,6 +24,7 @@ export = {
'release/',
'node_modules/',
'*.tsbuildinfo',
"rollup.config.js"
],
'rules': {
'class-methods-use-this': 0,
Expand All @@ -37,7 +38,7 @@ export = {
'no-continue': 0,
'no-cond-assign': 0,
'no-inner-declarations': 0,
'no-param-reassign': ['error', { 'props': true }],
'no-param-reassign': ['error', { 'props': true }],
'no-plusplus': 0,
'no-restricted-syntax': 0,
'no-return-assign': 0,
Expand Down
18 changes: 7 additions & 11 deletions packages/eslint-config/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@barusu/eslint-config",
"version": "0.0.1",
"description": "eslintconfig for node packages",
"description": "eslintconfig for ts packages",
"author": {
"name": "lemon-clown",
"url": "https://github.com/lemon-clown/"
Expand All @@ -14,25 +14,21 @@
"keywords": [
"eslintconfig"
],
"main": "lib/index.js",
"types": "lib/index.d.ts",
"main": "index.js",
"license": "MIT",
"engines": {
"node": ">= 12.16.0"
},
"files": [
"lib/",
"index.js",
"package.json",
"CHANGELOG.md",
"LICENSE",
"README.md",
"package.json"
"README.md"
],
"scripts": {
"prebuild": "rimraf *.tsbuildinfo lib/",
"build": "tsc -b tsconfig.json",
"postbuild": "rimraf lib/**/*.tsbuildinfo",
"lint:fix": "echo 'no lint needed'",
"prepublishOnly": "yarn build"
"build": "echo 'no build action needed'",
"lint:fix": "echo 'no lint action needed'"
},
"dependencies": {
"@typescript-eslint/eslint-plugin": "^2.16.0",
Expand Down

0 comments on commit 2e1129a

Please sign in to comment.