mirror of
https://github.com/hanzoai/lint-staged.git
synced 2026-10-30 19:37:36 +00:00
31 lines
732 B
JavaScript
31 lines
732 B
JavaScript
export const CONFIG_NAME = 'lint-staged'
|
|
|
|
export const PACKAGE_JSON_FILE = 'package.json'
|
|
|
|
export const PACKAGE_YAML_FILES = ['package.yaml', 'package.yml']
|
|
|
|
/**
|
|
* The list of files `lint-staged` will read configuration
|
|
* from, in the declared order.
|
|
*/
|
|
export const CONFIG_FILE_NAMES = [
|
|
PACKAGE_JSON_FILE,
|
|
...PACKAGE_YAML_FILES,
|
|
'.lintstagedrc',
|
|
'.lintstagedrc.json',
|
|
'.lintstagedrc.yaml',
|
|
'.lintstagedrc.yml',
|
|
'.lintstagedrc.mjs',
|
|
'.lintstagedrc.mts',
|
|
'.lintstagedrc.js',
|
|
'.lintstagedrc.ts',
|
|
'.lintstagedrc.cjs',
|
|
'.lintstagedrc.cts',
|
|
'lint-staged.config.mjs',
|
|
'lint-staged.config.mts',
|
|
'lint-staged.config.js',
|
|
'lint-staged.config.ts',
|
|
'lint-staged.config.cjs',
|
|
'lint-staged.config.cts',
|
|
]
|