Skip to content
代码片段 群组 项目
  • Lukas Eipert's avatar
    61e992af
    Move eslint related yarn scripts to the lint scope · 61e992af
    Lukas Eipert 创作于
    We are currently overloading the `eslint` command with our custom eslint
    logic. Unfortunately this causes us to run `eslint` on all js/vue files
    and makes it hard to run custom eslint commands. One has to resort to
    running e.g. `node_modules/.bin/eslint` directly.
    
    In an effort to consolidate the situation we are renaming the commands
    (borrowing from our rake syntax) as follows:
    
    - `eslint` => `lint:eslint`
    - `eslint-fix` => `lint:eslint:fix`
    - `eslint-staged` => `lint:eslint:staged`
    - `eslint-staged-fix` => `lint:eslint:staged:fix`
    - `eslint-report` => `lint:eslint:report`
    
    All but the `eslint` command have been replaced with a command that
    errors out immediately and hints folks to the new command.
    61e992af
    历史
    Move eslint related yarn scripts to the lint scope
    Lukas Eipert 创作于
    We are currently overloading the `eslint` command with our custom eslint
    logic. Unfortunately this causes us to run `eslint` on all js/vue files
    and makes it hard to run custom eslint commands. One has to resort to
    running e.g. `node_modules/.bin/eslint` directly.
    
    In an effort to consolidate the situation we are renaming the commands
    (borrowing from our rake syntax) as follows:
    
    - `eslint` => `lint:eslint`
    - `eslint-fix` => `lint:eslint:fix`
    - `eslint-staged` => `lint:eslint:staged`
    - `eslint-staged-fix` => `lint:eslint:staged:fix`
    - `eslint-report` => `lint:eslint:report`
    
    All but the `eslint` command have been replaced with a command that
    errors out immediately and hints folks to the new command.
代码所有者
将用户和群组指定为特定文件更改的核准人。 了解更多。