diff --git a/lint-staged.config.js b/lint-staged.config.js new file mode 100644 index 00000000..1720f9f6 --- /dev/null +++ b/lint-staged.config.js @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2018-present Arctic Ice Studio + * Copyright (C) 2018-present Sven Greb + * + * Project: Nord Docs + * Repository: https://github.com/arcticicestudio/nord-docs + * License: MIT + */ + +/** + * @file The lint-staged configuration. + * @author Arctic Ice Studio + * @author Sven Greb + * @see https://github.com/okonet/lint-staged#configuration + */ + +module.exports = { + "*.{js,json,jsx,md,mdx,yml}": "prettier --list-different", + "*.{js,jsx}": "eslint --ext .js,.jsx", + "*.md": "remark --no-stdout" +};