Skip to content
This repository has been archived by the owner on Feb 3, 2022. It is now read-only.

Latest commit

 

History

History

lint

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

It uses ESLint for JavaScript files and Stylelint for CSS.

Run lint tasks across the projects. It uses ESLint for JavaScript and TypeScript projects and StyleLint for CSS and SCSS files, looking for .eslintrc.yml and .stylelintrc.yml in the project root and fallbacking to RNA core config files missing. Configuration files and lint runners needs to be saved in the project, in order to provide integration with your IDE (eg VS Code).

Options

  • --fix Enable automatic fix for fixable warnings.
  • --watch Enable watch modes on files to lint.

Usage

# Lint all the project files.
$ rna lint

# Lint only some files
$ rna lint 'src/index.js' 'src/components/**/*.jsx'

# Lint and fix style errors
$ rna lint 'src/**/*.{css,sass,scss}' --fix

See also