Project: Switch to Prettier for code formatting
This commit is contained in:
+20
-8
@@ -6,25 +6,37 @@ if reuse_exe.found()
|
||||
test(
|
||||
'reuse',
|
||||
reuse_exe,
|
||||
args: [
|
||||
'--root',
|
||||
meson.project_source_root(),
|
||||
'lint'
|
||||
],
|
||||
args: ['--root', meson.project_source_root(), 'lint'],
|
||||
suite: 'licensing',
|
||||
)
|
||||
endif
|
||||
|
||||
eslint_exe = find_program(
|
||||
'eslint', 'eslint.js',
|
||||
'eslint',
|
||||
'eslint.js',
|
||||
required: false,
|
||||
dirs: [ meson.project_source_root() / 'node_modules' / 'eslint' / 'bin' ]
|
||||
dirs: [meson.project_source_root() / 'node_modules' / 'eslint' / 'bin'],
|
||||
)
|
||||
if eslint_exe.found()
|
||||
test(
|
||||
'eslint',
|
||||
eslint_exe,
|
||||
args: [ meson.project_source_root() / 'src' ],
|
||||
args: [meson.project_source_root()],
|
||||
suite: 'code',
|
||||
)
|
||||
endif
|
||||
|
||||
prettier_exe = find_program(
|
||||
'prettier',
|
||||
'prettier.cjs',
|
||||
required: false,
|
||||
dirs: [meson.project_source_root() / 'node_modules' / 'prettier' / 'bin'],
|
||||
)
|
||||
if prettier_exe.found()
|
||||
test(
|
||||
'prettier',
|
||||
prettier_exe,
|
||||
args: ['--check', meson.project_source_root()],
|
||||
suite: 'code',
|
||||
)
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user