1.0.12 • Published 3 years ago

lflint v1.0.12

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

lint-lf

This is a cli for eslint & stylelint & commitlint; User can install the personal lint by the cli automatically with less code;
Any problem can be discussed on my GitHub;

Waring:
Some of the lint files that your project already has will be overwritten by the cli right now. The next version will handle this problem;

steps:

  1. npm install
  2. lint config for start
    after input or select the config and then the cli will create some lint rules automatically;
    let's enjoy 'less code' !

if your npm version > v5.2, you can use this cli without install by npx;

  npx lint config

todo

  1. 逻辑分离
  2. js --> ts
  3. 完善 ignore 文件列表 完善基础配置文件 完善 eslintrc 规则
  4. 分离 all 依赖 使 eslint stylelint commitlint 可通过交互结果进行配置;
  5. 抽离依赖包 额外发布 npm 包 ?
  6. npm --> pnpm ?
  7. 支持 js/ts vue/react 的选择切换;
  8. 支持 config 文件进行合并而不是暴力覆盖;
  9. 增加 package json 中的脚本入口
  10. 增加 npm 自动发布脚本

comments

Rules NameValuecomments
"trailingComma""all"在任何可能的多行中输入尾逗号
"tabWidth"2设置工具每一个水平缩进的空格数
"semi"true在语句末尾添加分号
"singleQuote"true使用单引号而非双引号
"jsxSingleQuote"true,JSX 中使用单引号
"endOfLine""lf",行尾序列使用 LF
"printWidth"120设置 prettier 单行输出(不折行)的(最大)长度
"bracketSpacing"true在对象字面量声明所使用的的花括号后({)和前(})输出空格
"arrowParens""always"为单行箭头函数的参数添加圆括号,参数个数为 1 时可以省略圆括号
"quoteProps""as-needed",object 中 key 尽量不使用引号
"useTabs"false使用 tab(制表位)缩进而非空格
"parser""babylon"指定使用哪一种解析器, 默认会自动选择
"jsxBracketSameLine"true在多行 JSX 元素最后一行的末尾添加 > 而使 > 单独一行(不适用于自闭和元素)
"rangeStart"0只格式化某个文件的一部分
"rangeEnd"Infinity只格式化某个文件的一部分
"filepath""none"指定文件的输入路径,这将被用于解析器参照
1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.12

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.4

3 years ago

0.0.1

3 years ago